@layout("/common/_form.html",{js:["/assets/tpls/tpls_edit.js"]}){

<form class="layui-form" id="tplsForm" lay-filter="tplsForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>

                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">所属服务<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="fwid" lay-filter="fwid">
                            	@for(item in fuwu){
                            		<option value="${item.id}">${item.serName}</option>
                            	@}
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">所属分类<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="flid" lay-filter="flid">
                                @for(item in lb){
                            		<option value="${item.id}">${item.name}</option>
                            	@}
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">模板名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="请输入模板名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">描述<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="ms" name="ms" placeholder="请输入描述" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">价格<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="jiage" name="jiage" placeholder="请输入价格" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">适用<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="sy" name="sy" placeholder="请输入适用" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">标签<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="tags" name="tags" placeholder="请输入标签" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">作者<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="zuozhe" name="zuozhe" placeholder="请输入作者" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">模板图<span style="color: red;">*</span></label>
                        <div class="layui-upload">
                            <button type="button" class="layui-btn" id="pics">上传图片</button>
                            <div class="layui-upload-list">
                                <img class="layui-upload-img" id="filePreview">
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">模板主图<span style="color: red;">*</span></label>
                        <div class="layui-upload">
                            <button type="button" class="layui-btn" id="mainPic">上传图片</button>
                            <div class="layui-upload-list">
                                <img class="layui-upload-img" id="filePreview">
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">模板详情<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="detail" name="detail" placeholder="请输入模板详情" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    
                    
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}